/*
 * Copyright (C) 2023 Realtek Semiconductor Corp. 
 * All Rights Reserved.
 *
 * This program is the proprietary software of Realtek Semiconductor
 * Corporation and/or its licensors, and only be used, duplicated, 
 * modified or distributed under the authorized license from Realtek. 
 *
 * ANY USE OF THE SOFTWARE OTHER THAN AS AUTHORIZED UNDER 
 * THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. 
 *
 * Purpose : Definition of ME attribute: ANIG extention  (65508)
 *
 * Feature : The file includes the following modules and sub-modules
 *           (1) ME attribute: ANIG extention  (65508)
 */

#ifndef __MIB_ANIG_EXTENTION_TABLE_H__
#define __MIB_ANIG_EXTENTION_TABLE_H__


/* Table Anig attribute index */
#define MIB_TABLE_ANIG_EXTENTION_ATTR_NUM (5)
#define MIB_TABLE_ANIG_EXTENTION_ENTITYID_INDEX ((MIB_ATTR_INDEX)1)
#define MIB_TABLE_ANIG_EXTENTION_ANIG_POINT_INDEX ((MIB_ATTR_INDEX)2)
#define MIB_TABLE_ANIG_EXTENTION_ANIG_CAPABILITY_INDEX ((MIB_ATTR_INDEX)3)
#define MIB_TABLE_ANIG_EXTENTION_ANI_MODE_INDEX ((MIB_ATTR_INDEX)4)
#define MIB_TABLE_ANIG_EXTENTION_CURR_ANI_MODE_INDEX ((MIB_ATTR_INDEX)5)

typedef enum
{
    MIB_ANIG_EXTENTION_ANI_MODE_AUTO    = (1 << 0),
    MIB_ANIG_EXTENTION_ANI_MODE_GPON    = (1 << 1), 
    MIB_ANIG_EXTENTION_ANI_MODE_XGPON   = (1 << 2), 
    MIB_ANIG_EXTENTION_ANI_MODE_XGSPON  = (1 << 3),         
}MIB_ANIG_EXTENTION_ANI_MODE;


// Table PPTP FTTR P2MP Port  entry stucture
typedef struct {
    UINT16	EntityID; // index 1
    UINT16	AnigPoint;
    UINT16	AniCapability;
    UINT16	AniMode;
    UINT16	CurrentAniMode;
} __attribute__((packed)) MIB_TABLE_ANIG_EXTENTION_T;


#endif
